package arithmetic;

public class Arithmetic1 {
    public static void main(String[] args) {
        int num = 1;
        while (true){
            if(IsNumber(num)){
                break;
            }
            num++;
        }
        System.out.println(num);
    }
    public  static  boolean IsNumber(int num){
        int i = 0;
        while (i<5){
            if((num - 1)%5==0){
                num = num - (num - 1)/5 -1;
                i++;
            }else {
                return false;
            }

        }
        return true;
    }
}
